//@Author:code-cats 

#include "display.h"
#include "stdio.h"

char displaydata[100]={0};
//Line0
void Display_SHOP(uint8_t shopx,uint8_t shopy)
{
	//LCD_Clear(Black);
	LCD_DisplayStringLine(Line1 ,(unsigned char *)"        SHOP   ");
	sprintf(displaydata,"     X:%d      ",shopx);
	LCD_DisplayStringLine(Line3 ,(unsigned char *)displaydata);
	sprintf(displaydata,"     Y:%d      ",shopy);
	LCD_DisplayStringLine(Line4 ,(unsigned char *)displaydata);
}

void Display_PRICE(float pricex,float pricey)
{
	//LCD_Clear(Black);
	LCD_DisplayStringLine(Line1 ,(unsigned char *)"        PRICE   ");
	sprintf(displaydata,"     X:%.1f      ",pricex);
	LCD_DisplayStringLine(Line3 ,(unsigned char *)displaydata);
	sprintf(displaydata,"     Y:%.1f      ",pricey);
	LCD_DisplayStringLine(Line4 ,(unsigned char *)displaydata);
}

void Display_REP(uint8_t repx,uint8_t repy)
{
	//LCD_Clear(Black);
	LCD_DisplayStringLine(Line1 ,(unsigned char *)"        REP   ");
	sprintf(displaydata,"     X:%d      ",repx);
	LCD_DisplayStringLine(Line3 ,(unsigned char *)displaydata);
	sprintf(displaydata,"     Y:%d      ",repy);
	LCD_DisplayStringLine(Line4 ,(unsigned char *)displaydata);
}





